package homework02;

public class Score {
	private String id;
	private String nameOfCourse;
	private int mark;

	public Score(String sid, String snameOfCourse, int smark) {
		this.id = sid;
		this.nameOfCourse = snameOfCourse;
		this.mark = smark;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNameOfCourse() {
		return nameOfCourse;
	}

	public void setNameOfCourse(String nameOfCourse) {
		this.nameOfCourse = nameOfCourse;
	}

	public int getMark() {
		return mark;
	}

	public void setMark(int mark) {
		this.mark = mark;
	}

	@Override
	public String toString() {
		return "学号：" + this.getId() + " 课程名：" + this.getNameOfCourse() + " 分数：" + this.getMark();
	}
}
